<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>05_元素显示模式</title>
    <style>
        /*div默认宽度为父级宽度的高度100% 高度靠内容撑起来默认为0*/
        div {
            width: 200px;
            height: 200px;
            border: 5px solid red;
            /*块级元素*/
            display: block;
        }
        span {
            /*行内元素:不可以设置宽高按照书写次序横着排*/
            display: inline;
            /*切换元素的显示模式*/
            display: block;
            background-color: #ffff00;
            width: 100px;
            height: 100px;
        }
        input,button {
            /*行内块元素:可以设置宽高按照书写次序横着排*/
            display: inline-block;
        }
        .d2:hover {
            /*隐藏元素:脱离文档流*/
            display: none;
        }
    </style>
</head>
<body>
<div class="d1">111</div>
<div class="d2">222</div>
<div class="d3">333</div>
<hr>
<span>1234567890</span>
<span>1234567890</span>
<span>1234567890</span>
<hr>
<input type="text">
<input type="text">
<button>按钮</button>

</body>
</html>